<?php

namespace Common\Bundle\LibraryBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * Evaluation
 *
 * @ORM\Table("evaluation")
 * @ORM\Entity(repositoryClass="Common\Bundle\LibraryBundle\Entity\Repository\EvaluationRepository")
 */
class Evaluation
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="description", type="string", length=255)
     * @Assert\NotBlank()
     */
    private $description;

    /**
     * @var integer
     *
     * @ORM\Column(name="trancheInf", type="integer")
     * @Assert\Range(min = 0, minMessage="Valeur minimum à 0",
     *                  max= 100, maxMessage="valeur maximum à 100")
     */
    private $trancheInf;

    /**
     * @var integer
     *
     * @ORM\Column(name="trancheSup", type="integer")
     * @Assert\Range(min = 0, minMessage="Valeur minimum à 0",
     *                  max= 100, maxMessage="valeur maximum à 100")
     */
    private $trancheSup;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set description
     *
     * @param string $description
     * @return Evaluation
     */
    public function setDescription($description)
    {
        $this->description = $description;

        return $this;
    }

    /**
     * Get description
     *
     * @return string 
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Set trancheInf
     *
     * @param integer $trancheInf
     * @return Evaluation
     */
    public function setTrancheInf($trancheInf)
    {
        $this->trancheInf = $trancheInf;
        return $this;
    }

    /**
     * Get trancheInf
     *
     * @return integer 
     */
    public function getTrancheInf()
    {
        return $this->trancheInf;
    }

    /**
     * Set trancheSup
     *
     * @param integer $trancheSup
     * @return Evaluation
     */
    public function setTrancheSup($trancheSup)
    {
        $this->trancheSup = $trancheSup;
        return $this;
    }

    /**
     * Get trancheSup
     *
     * @return integer 
     */
    public function getTrancheSup()
    {
        return $this->trancheSup;
    }
}
